home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _938E9EF2E8FB4C3085B7FFA19478EC6D < prev    next >
Encoding:
Text File  |  2002-04-23  |  3.2 KB  |  180 lines

  1. {
  2.     \\ END OF GAME \\
  3.  
  4.     menuDef 
  5.     {
  6.         name        "password_popmenu"
  7.            visible        0
  8.            fullscreen    0
  9.         rect        0 0 640 480
  10.         focusColor    .49 .56 .27 1
  11.            style        1
  12.         popup
  13.  
  14.         onOpen
  15.         {
  16.             setfocus namefield
  17.         }
  18.  
  19.         onClose 
  20.         { 
  21.         }
  22.         
  23.         onESC 
  24.         { 
  25.             uiScript "Leave";
  26.         }
  27.  
  28.         itemDef
  29.         {
  30.             name        window
  31.             rect        0 0 640 480
  32.             style        WINDOW_STYLE_FILLED
  33.             backcolor    0 0 0 .5
  34.             visible        1
  35.             decoration
  36.         }
  37.  
  38.         itemDef 
  39.         {
  40.             name        window
  41.                rect        160 80 345 345
  42.             background    "gfx/menus/backdrop/requestor"
  43.             style        WINDOW_STYLE_SHADER
  44.             visible        1
  45.             decoration
  46.         }
  47.  
  48.         itemDef 
  49.         {
  50.             name        window
  51.             text        "Enter Password"
  52.             style        WINDOW_STYLE_FILLED
  53.             textfont    "hud"
  54.             textscale    .53
  55.             rect        176 97 285 33
  56.             textalign    1
  57.             textalignx    142
  58.             textaligny    8
  59.             forecolor    .12 .14 .08 1
  60.             backcolor    0 0 0 .25
  61.             visible        1
  62.             decoration
  63.         }
  64.  
  65.         itemDef
  66.         {
  67.             name        window
  68.             style        WINDOW_STYLE_EMPTY
  69.             text        "Password"
  70.             textfont    "hud"
  71.             textscale    .43
  72.             rect        219 198 215 15
  73.             textalign    ITEM_ALIGN_LEFT
  74.             textalignx  0
  75.             textaligny    2
  76.             forecolor    .12 .14 .08 1
  77.             visible        1
  78.         }
  79.  
  80.         itemDef 
  81.         {
  82.               name        namefield
  83.               type        ITEM_TYPE_PASSWORDFIELD
  84.             style        WINDOW_STYLE_FILLED
  85. //            text        ":"
  86.             cvar        "ui_connect_password"
  87.             maxChars    20
  88.               rect        219 215 185 20 
  89.               textalign    ITEM_ALIGN_LEFT        
  90.               textalignx    0
  91.               textaligny    2
  92.             textfont    "hud"
  93.             textscale    .43
  94.             forecolor    1 1 1 1
  95.             backcolor    0 0 0 .25
  96.               visible        1 
  97.  
  98.             action 
  99.             { 
  100.                 play "sound/misc/menus/select.wav" ; 
  101.             }
  102.         }
  103.  
  104.         //    BUTTON
  105.  
  106.         itemDef 
  107.         {
  108.             name        ok_button
  109.             text        "OK"
  110.             type        1
  111.             textfont    "hud"
  112.             textscale    .43
  113.             type        ITEM_TYPE_BUTTON
  114.             style        WINDOW_STYLE_FILLED
  115.             rect        245 320 65 26
  116.             textalignx    22
  117.             textaligny    5
  118.             forecolor    .12 .14 .08 1
  119.             backcolor    0 0 0 0
  120.             border        1
  121.             bordercolor    0 0 0 1
  122.             visible        1
  123.             
  124.             action 
  125.             { 
  126.                 play        "sound/misc/menus/select.wav" ; 
  127.                 close        "password_popmenu";
  128.                 uiScript    "SetConnectPassword";
  129.             }
  130.             mouseEnter 
  131.             { 
  132.                 play "sound/misc/menus/hilite1.wav" ; 
  133.                 setitemcolor ok_button backcolor .12 .14 .08 1
  134.                 setitemcolor ok_button forecolor .49 .56 .27 1
  135.             }                 
  136.             mouseExit 
  137.             { 
  138.                 setitemcolor ok_button backcolor 0 0 0 0
  139.                 setitemcolor ok_button forecolor .12 .14 .08 1
  140.             }
  141.         }
  142.  
  143.         itemDef 
  144.         {
  145.             name        cancel_button
  146.             text        "Cancel"
  147.             type        1
  148.             textfont    "hud"
  149.             textscale    .43
  150.             type        ITEM_TYPE_BUTTON
  151.             style        WINDOW_STYLE_FILLED
  152.             rect        335 320 65 26
  153.             textalignx    10
  154.             textaligny    5
  155.             forecolor    .12 .14 .08 1
  156.             backcolor    0 0 0 0
  157.             border        1
  158.             bordercolor    0 0 0 1
  159.             visible        1
  160.             
  161.             action 
  162.             { 
  163.                 play        "sound/misc/menus/select.wav" ; 
  164.                 close        "password_popmenu";
  165.                 uiScript    "Leave";
  166.             }
  167.             mouseEnter 
  168.             { 
  169.                 play "sound/misc/menus/hilite1.wav" ; 
  170.                 setitemcolor cancel_button backcolor .12 .14 .08 1
  171.                 setitemcolor cancel_button forecolor .49 .56 .27 1
  172.             }                 
  173.             mouseExit 
  174.             { 
  175.                 setitemcolor cancel_button backcolor 0 0 0 0
  176.                 setitemcolor cancel_button forecolor .12 .14 .08 1
  177.             }
  178.         }
  179.     }
  180. }